package com.xiaomi.service.impl;


import com.xiaomi.dao.TypeDao;
import com.xiaomi.dao.impl.TypeDaoImpl;
import com.xiaomi.entity.Type;
import com.xiaomi.service.TypeService;

import java.util.List;

/**
 * TODO
 *
 * @author jy
 * @date 2021/5/24
 */
public class TypeServiceImpl implements TypeService {

    private final TypeDao typeDao = new TypeDaoImpl();

    @Override
    public List<Type> typeListToJson() {
        try {
            return typeDao.typeListToJson();
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
